package com.ruoyi.teaching.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 查询面试题(附带上次掌握详情)
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QueryInterviewWithMasterDetailDTO {
    private Integer pageNum;
    private Integer pageSize;
    private Integer beginRows;
    private Integer importance;
    private String question;
    private Integer stage;
    private Long classesId;
    private Long userId;
    private Boolean onlyLast;
    private Integer qualified;

    public Integer getBeginRows() {
        //计算起始行数
        beginRows = (pageNum - 1) * pageSize;
        return beginRows;
    }
}
